import React from "react";

//宠物领养标签分页
export async function apiGetGoodsInfoPage(params) {
  return await React.$post("admin/goodsInfo/goodsInfoPage", params);
}

//新增活动
export async function apiPlatformActivitySheetAdd(params) {
  return await React.$postJson("admin/platformActivitySheet/add/Json", params);
}

//编辑活动
export async function apiPlatformActivitySheetEdit(params) {
  return await React.$postJson("admin/platformActivitySheet/edit/Json", params);
}
// 获取活动列表
export async function apiPlatformActivitySheetPage(params) {
  return await React.$post("admin/platformActivitySheet/page", params);
}
// 查询活动详情
export async function apiPlatformActivitySheetView(params) {
  return await React.$post("admin/platformActivitySheet/view", params);
}
// 修改活动状态
export async function apiPlatformActivitySheetUpdateActivityStatus(params) {
  return await React.$post("admin/platformActivitySheet/activitySwitch", params);
}
// 删除活动
export async function apiPlatformActivitySheetDel(params) {
  return await React.$post("admin/platformActivitySheet/del", params);
}
// 获取参与用户列表
export async function apiPlatformActivityRecordtPage(params) {
  return await React.$post("admin/platformActivityRecord/page", params);
}
// 获取活动类型
export async function apiGetActivityConfig(params) {
  return await React.$post("admin/configPlatformSet/getActivityConfig", params);
}

// 活动商品批量导入
export async function apiPlatformActivitySheetExcelImport(params) {
  return await React.$postFormData("admin/platformActivitySheet/excelImport", params);
}

// 活动导出
export async function apiPlatformActivitySheetExcelExport(params) {
  return await React.$postBlob("admin/platformActivitySheet/excelExport", params);
}

// 活动商品保存冲突提示
export async function apiActivitySkuRepetitionVerify(params) {
  return await React.$postJson("admin/platformActivitySheet/activitySkuRepetitionVerify/Json", params);
}

// 活动保存验证
export async function apiActivitySkuFloorPriceVerify(params) {
  return await React.$postJson("admin/platformActivitySheet/activitySkuFloorPriceVerify/Json", params);
}
// 查询活动详情
export async function platformActivitySheetView(params) {
  return await React.$post("admin/platformActivitySheet/view", params);
}// 商品批量导入不参与
export async function apiActivityExcelBlacklistImport(params) {
    return await React.$postFormData("admin/platformActivitySheet/excelBlacklistImport", params);
}
